$drawer-prefix-cls: "#{$css-prefix}drawer";

.#{$drawer-prefix-cls} {
    width: auto;
    position: fixed;
    &-inner{
        position: absolute;
    }
    &-left{
        left:$drawer-left;
    }
    &-right{
        right: $drawer-right;
    }
    &-hidden {
        display: none !important;
    }
    &-wrap {
        position: fixed;
        overflow: auto;
        top: 0;
        right: $drawer-right;
        bottom: 0;
        left: $drawer-left;
        z-index: $zindex-drawer;
        -webkit-overflow-scrolling: touch;
        outline: 0;

        &-inner{
            position: absolute;
        }
    }

    &-wrap * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    &-mask {
        // .mask;
        @include mask;
        &-inner{
            position: absolute;
        }
    }

    &-content {
        width: 100%;
        height: 100%;
        position: absolute;
        top: $drawer-content-top;
        bottom: $drawer-content-bottom;
        background-color:$drawer-content-background-color;
        border: 0;
        background-clip: padding-box;
        box-shadow: $drawer-content-box-shadow;

        &-no-mask{
            pointer-events: auto;
        }
    }

    &-header {
        // .content-header;
        @include content-header;
    }

    &-close {
        z-index: 1;
        @include content-close(1px, 31px);
        // .content-close(1px, 31px);
    }

    &-body {
        width: 100%;
        height: calc(100% - 51px);
        padding: $drawer-body-padding;
        font-size: $drawer-body-font-size;
        line-height: 1.5;
        word-wrap: break-word;
        position: absolute;
        overflow: auto;
    }

    &-no-header &-body{
        height: 100%;
    }

    &-no-mask{
        pointer-events: none;
    }
}
.#{$drawer-prefix-cls}-right,.#{$drawer-prefix-cls}-left{
    height: 100%;
    top: 0;
}
.#{$drawer-prefix-cls}-up,.#{$drawer-prefix-cls}-down{
    width: 100%;
    left: 0;
}
.#{$drawer-prefix-cls}-down{
    bottom: 0;
}